package vip.xiaonuo.smzq.modular.lifecycle.vo.datamanager;

import cn.hutool.core.util.StrUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import vip.xiaonuo.smzq.modular.lifecycle.entity.LifeCycleMineStore;
import vip.xiaonuo.smzq.modular.lifecycle.entity.LifeCycleMineralMea;

/**
 * 查询生命周期节点数据
 */
@Data
public class LifeCycleMineMeaVO extends LifeCycleMineralMea {
    @ApiModelProperty("矿石类型名称")
    private String mineralTypeName;

    @ApiModelProperty("金属名称")
    private String metalName;

    public void initMineralTypeName(){
        if(StrUtil.isNotBlank(this.getMetalName())){
//        if(super.getTjdx() != 0D){
           this.setMineralTypeName(StrUtil.format("{}[{}]",this.getMineralTypeName(),this.getMetalName()));
        }
    }


}
